import java.util.Scanner;

public class Exer3_7_7 {
    public static void main(String[] args) {
        System.out.println("请输入三个数：");
        Scanner input = new Scanner(System.in);
//        int a = input.nextInt();
//        int b = input.nextInt();
//        int c = input.nextInt();
//        int max1 = a > b ? a : b;
//        int max = max1 > c ? max1 : c;
//        int min1 = a < b ? a : b;
//        int min = min1 < c ? min1 : c;
//        int mid = (a + b + c) - (max + min);
//        System.out.println("三个数从小到大的顺序是：" + min + "," + mid + "," + max);
        double a = input.nextDouble();
        double b = input.nextDouble();
        double c = input.nextDouble();
        double temp;
        if (a > b) {
            temp = a;
            a = b;
            b = temp;

            if (b < c) {
                temp = b;
                b = c;
                c = temp;
            }
            if (b > c) {
                temp = b;
                b = c;
                c = temp;
            }
        }else {
            if(b>c){
                temp=b;
                b=c;
                c=temp;
            }
        }
            System.out.println("三个数从小到大的顺序是：" + a  + "，" + b + "，" + c);




    }
}